package com.yiban.demo.ShuoShuo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShuoShuo {
    @NotBlank(message = "内容不能为空")
    private String content;
    @TableId(type = IdType.AUTO)
    private Integer ShuoShuoId;
    private Integer star;
    private Long timestamp;
}
